package com.aaa.day03.mystatic;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2024/11/13 9:28
 * @description：售票员类
 * @modified By：
 * @version: 1.0
 */
public class TicketSaler {
    String  name;
    static int tickets=100;

    public TicketSaler() {
    }

    public TicketSaler(String name) {
        this.name = name;
    }

    /**
     * @create by: Teacher陈
     * @description: 售票
     * @create time: 2020/11/20 15:46
     * @return
     */
    public  void saleTicket(){
        tickets--;
        System.out.println("售票员"+name+"卖出一张火车票");
    }

    public static void main(String[] args) {
      /*  System.out.println("买票之前的票数："+100);
        TicketSaler  ticketSaler1= new TicketSaler("张瑞");
        TicketSaler  ticketSaler2= new TicketSaler("李豪");
        ticketSaler1.saleTicket();
        ticketSaler2.saleTicket();
        System.out.println("买票之后的票数："+TicketSaler.tickets);*/
       /* MyStaticTest myStaticTest = new MyStaticTest();
        myStaticTest.print();*/
       // MyStaticTest.print();

    }
}
